package com.arron.strategy;

public class Client {
    public static void main(String[] args) {

        MovieTicket movieTicket = new MovieTicket();
        double originalPrice = 60;
        double currentPrice;

        movieTicket.setPrice(originalPrice);
        System.out.println("原始票价：" + originalPrice);
        System.out.println("=================================");

        Discount discount = (Discount) XMLUtil.getBean();
        movieTicket.setDiscount(discount);

        currentPrice = movieTicket.getPrice();
        System.out.println("折后票价为：" + currentPrice);
    }
}
